
yum install java-1.8.0-openjdk-devel.x86_64 -y

sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install jenkins -y
systemctl enable jenkins


wget -O /tmp/apache-maven-3.6.1-bin.tar.gz -c https://ms-source.oss-cn-shanghai.aliyuncs.com/maven/3.6.1/apache-maven-3.6.1-bin.tar.gz
tar -zvxf /tmp/apache-maven-3.6.1-bin.tar.gz -C /tmp/
mv /tmp/apache-maven-3.6.1 /opt/maven
mkdir -p /data/maven/repo
chmod 777 /data/maven/repo
echo -e "\nexport MAVEN_HOME=/opt/maven\nexport PATH=\${MAVEN_HOME}/bin:\$PATH" >> /etc/profile
source /etc/profile

wget -O /tmp/node-v10.16.0-linux-x64.tar.xz -c https://ms-source.oss-cn-shanghai.aliyuncs.com/nodejs/10.16.0/node-v10.16.0-linux-x64.tar.xz
cd /tmp
xz -d /tmp/node-v10.16.0-linux-x64.tar.xz 
tar vxf /tmp/node-v10.16.0-linux-x64.tar -C /tmp/
mv /tmp/node-v10.16.0-linux-x64 /opt/nodejs
echo -e "\nexport NODE_HOME=/opt/nodejs\nexport PATH=\${NODE_HOME}/bin:\$PATH" >> /etc/profile
source /etc/profile
